package com.fosdata.dpm.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;
import java.io.Serializable;


/**
 * <p>
 * 箱变类型表
 * </p>
 *
 * @author gyk
 * @since 2025-10-22
 */

@TableName("sys_xbtype")
public class SysXbtype extends Model<SysXbtype> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "xb_id", type = IdType.AUTO)
    private Integer xbId;

    /**
     * 箱变编号
     */
    private String xbCode;

    /**
     * 箱变名称
     */
    private String xbName;

    /**
     * 状态;删除1，正常0
     */
    private Integer xbDelFlag;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.xbId;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getXbId() {
        return xbId;
    }

    public void setXbId(Integer xbId) {
        this.xbId = xbId;
    }

    public String getXbCode() {
        return xbCode;
    }

    public void setXbCode(String xbCode) {
        this.xbCode = xbCode;
    }

    public String getXbName() {
        return xbName;
    }

    public void setXbName(String xbName) {
        this.xbName = xbName;
    }

    public Integer getXbDelFlag() {
        return xbDelFlag;
    }

    public void setXbDelFlag(Integer xbDelFlag) {
        this.xbDelFlag = xbDelFlag;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "SysXbtype{" +
                "xbId=" + xbId +
                ", xbCode='" + xbCode + '\'' +
                ", xbName='" + xbName + '\'' +
                ", xbDelFlag=" + xbDelFlag +
                ", createTime=" + createTime +
                '}';
    }
}
